import { IsNotEmpty } from "class-validator";
import { IsExistsRule } from "src/common/rules/is-exists.rule";

export class LoginAdminUserDto {
  @IsNotEmpty({message: '用户名不能为空'})
  @IsExistsRule('adminUser', {message: '用户不存在'})
  userName: string

  @IsNotEmpty({message: '密码不能为空'})
  password: string
}